package com.mango.repository.mapper;


import com.mango.repository.model.AmazonCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface AmazonCategoryMapper {
    int deleteByPrimaryKey(String browseNodeId);

    int insert(AmazonCategory record);

    int insertSelective(AmazonCategory record);

    AmazonCategory selectByPrimaryKey(String browseNodeId);

    int updateByPrimaryKeySelective(AmazonCategory record);

    int updateByPrimaryKey(AmazonCategory record);

    int updateBatch(List<AmazonCategory> list);

    int batchInsert(@Param("list") List<AmazonCategory> list);


    List<AmazonCategory> selectAll();


    List<AmazonCategory> selectByIsTotalNode();

    /**
     *  根据父ID 查询子目录
     * @param browseNodeIdList
     * @return
     */
    List<AmazonCategory> selectCategoryListByParentId(@Param("list")String[] browseNodeIdList);
}